#define MIN_LENGTH 0.00
#define MAX_LENGTH 100.00


bool checkValid(float value)
{
    return ((value > MIN_LENGTH) && (value <= MAX_LENGTH));
}

bool checkHeightValid(float height)
{
    return checkValid(height);
}

bool checkWidthValid(float width)
{
    return checkValid(width);
}

float floor(float value)
{
    float tempValue = (value * 100.00f);
    return ((int)tempValue) / 100.00f;
}

float round(float value)
{
    float tempValue = (value * 1000.00f);
    if (((int)tempValue % 10) >= 5)
    {
        tempValue = (tempValue + 5) / 10.00f;
    }
    else
    {
        tempValue = tempValue / 10.00f;
    }
    return ((int)tempValue) / 100.00f;
}



